package main

import (
	"log"
	"os"
	"GoRProxy/Server"
	"sync"
)

func main() {

	if len(os.Args) < 3 {
		log.Println("Usage: server <managerPort>  <servicePort> [servicePort] ...")
		return
	}
	log.Println("Start  Server ... ")
	go Server.ListenServerPost(os.Args[1])
	Server.ListenConnction(os.Args[2:])
	wg := sync.WaitGroup{}
	wg.Add(1)
	wg.Wait()

}
